Masterarbeit v0.6.2

Docs

Endpoint: /analyze/image/<id>

Returns the found images and their occurring as selectors.

Request

URL

Method: GET /api/analyze/image/<id>

Request Parameters

  • id: ID of the website (required)

Request Body

no request body

Response

Response Elements

  • id: ID of the requested website
  • storedImages: list of stored images of the requested website
  • storedImages.id: ID of the stored image
  • storedImages.selectors: list of selectors of occuring image

Examples

Request

GET /api/analyze/image/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Content-type: application/json

Response

{
  "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "storedImages": [
    {
      "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "selectors": [
        "body:nth-of-type(1) \u003E img:nth-of-type(1)",
        "body:nth-of-type(1) \u003E img:nth-of-type(4)"
      ]
    },
    {
      "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "selectors": [
        "body:nth-of-type(1) \u003E img:nth-of-type(2)",
        // ...
      ]
    },
    // ...
  ]
}